c_ = sparse(48,1);
c_(1) = -1;
b_ = sparse(35,1);
b_(3:3) = B;
b_(19:19) = -0.5;
b_(20:20) = -0.5;
b_(24:24) = -0.5;
b_(25:25) = -0.5;
A_ = sparse(35, 48);
A_(1:1, 31:31) = 1.0; A_(1:1, 32:32) = -1.0;
A_(2:2, 31:31) = -1.0; A_(2:2, 33:42) = 1.0*ones(1, 10);
A_(3:3, 32:32) = 1.0;
A_(4:13, 33:42) = 1.0*speye(10, 10); A_(4:13, 2:11) = -1.0*speye(10, 10); A_(4:13, 43:43) = -1.0*ones(10, 1);
A_(14:14, 43:43) = 1.0;
A_(15:15, 44:44) = 1.0; A_(15:15, 45:45) = -1.0; A_(15:15, 1:1) = -1.0;
A_(16:16, 33:42) = mu'; A_(16:16, 44:44) = -1.0;
A_(17:17, 46:46) = gamma; A_(17:17, 45:45) = -1.0;
A_(18:18, 47:47) = 1.0; A_(18:18, 48:48) = 1.0; A_(18:18, 46:46) = -1.0;
A_(19:19, 47:47) = 0.5; A_(19:19, 12:12) = -1.0;
A_(20:20, 47:47) = -0.5; A_(20:20, 13:13) = -1.0;
A_(21:23, 33:42) = F'; A_(21:23, 15:17) = -1.0*speye(3, 3);
A_(24:24, 48:48) = 0.5; A_(24:24, 18:18) = -1.0;
A_(25:25, 48:48) = -0.5; A_(25:25, 19:19) = -1.0;
A_(26:35, 33:42) = spdiags(d,0,10,10); A_(26:35, 21:30) = -1.0*speye(10, 10);
G_ = sparse(31, 48);
G_(1:1:10, 2:11) = -speye(10, 10);
G_(11:1:11, 12:12) = -speye(1, 1);
G_(12:1:12, 13:13) = -speye(1, 1);
G_(13:1:13, 14:14) = -speye(1, 1);
G_(14:1:14, 18:18) = -speye(1, 1);
G_(15:1:15, 19:19) = -speye(1, 1);
G_(16:1:16, 20:20) = -speye(1, 1);
G_(17:1:17, 14:14) = -speye(1, 1);
G_(18:1:20, 15:17) = -speye(3, 3);
G_(21:1:21, 20:20) = -speye(1, 1);
G_(22:1:31, 21:30) = -speye(10, 10);
h_ = zeros(31, 1);
dims.q = [3,3,4,11];
dims.l = 10;
[x_codegen, y_, info_] = conelp(full(c_), G_, h_, dims, A_, full(b_));
t1 = x_codegen(1:1);
t12 = x_codegen(2:11);
t5z0 = x_codegen(12:12);
t5z1 = x_codegen(13:13);
t4 = x_codegen(14:14);
t3 = x_codegen(15:17);
t9z0 = x_codegen(18:18);
t9z1 = x_codegen(19:19);
t8 = x_codegen(20:20);
t7 = x_codegen(21:30);
t10 = x_codegen(31:31);
pB = x_codegen(32:32);
x = x_codegen(33:42);
c0d0 = x_codegen(43:43);
t0 = x_codegen(44:44);
t2 = x_codegen(45:45);
t6 = x_codegen(46:46);
t5 = x_codegen(47:47);
t9 = x_codegen(48:48);
ecos_optval = -1*info_.pcost;
